package juc.objectheader;

import org.openjdk.jol.info.ClassLayout;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2022-09-01 17:22
 **/
public class JOLDemo {
    public static void main(String[] args) {
        final Object o = new Object();
//        System.out.println(VM.current().details());
        final User user = new User();
        System.out.println(ClassLayout.parseInstance(o).toPrintable());
    }
}

class User{

    private int id;

    private boolean alive;
}
